/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.plk.obey.services.internal;

import za.ac.cput.plk.obey.model.Name;
import za.ac.cput.plk.obey.services.TrafficService;



/**
 *
 * @author Abduraghmaan
 */
public class NameSearchService implements TrafficService{
    
   
    @Override
    public String setVehicleType(Name n)
    {
        if(n.getCode() == 6)
            return ("light");
        else
            return ("heavy");
    }
    
    
    
}
